<?php
class ResqueUtil
{
    public static function log($message)
    {
        $logger = new FileLogger();
        $logger->setLogPath(Yii::app()->runtimePath);
        $logFile = Yii::app()->resque->logFile;
        if(!empty($logFile))
        {
            $logger->setLogFile($logFile);
        }
        $logger->processLog(array($message, time()));
    }
}